/**
   * 持久化token
   */

const big_TOKEN = 'big_TOKEN'

// 存储token
export function setToken (token) {
  window.localStorage.setItem(big_TOKEN, JSON.stringify(token))
}

// 获取token
export function getToken () {
  return JSON.parse(window.localStorage.getItem(big_TOKEN))
}

// 删除token
export function delToken () {
  window.localStorage.removeItem(big_TOKEN)
}
